iT邦幫忙

2025 iThome 鐵人賽

DAY 26
0
自我挑戰組

網頁設計自我挑戰 - 從零開始系列 第 26

最終頁面的打磨:頁腳區塊與版權資訊

  • 分享至 

  • xImage
  •  

頁腳(Footer)雖然在最下方,但它扮演著重要的角色,通常包含版權資訊、聯絡方式或社群媒體連結。
好的頁腳設計應該簡潔、清晰,並且能與整體網頁風格一致。

在作品集頁面最下方,新增一個頁腳區塊 <div class="footer">

HTML

<footer class="footer">
  <div class="social-links">
    <a href="#"><i class="fab fa-github"></i></a>
    <a href="#"><i class="fab fa-linkedin"></i></a>
    <a href="#"><i class="fab fa-facebook"></i></a>
  </div>
  <p>&copy; 2025 小包. All rights reserved.</p>
</footer>

在 style.css 中,為頁腳加上樣式:

CSS

.footer {
  text-align: center;
  padding: 20px;
  background-color: #34495e;
  color: white;
}
.social-links a {
  color: white;
  font-size: 24px;
  margin: 0 10px;
}

這個頁腳包含了社群媒體圖標和版權宣告,讓網頁看起來更完整。

執行成果 :
https://ithelp.ithome.com.tw/upload/images/20250902/20171037pSnSwDsV5g.png


上一篇
檔案管理的學問:專案目錄結構與命名
下一篇
響應式優化:用 Media Queries 讓作品集在手機上也能完美呈現
系列文
網頁設計自我挑戰 - 從零開始27
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言